﻿#region zh-CHS 2006 - 2007 DemoSoft 团队 | en 2006 - 2007 DemoSoft Team

//     NOTES
// ---------------
//
// This file is a part of the MMOSE(Massively Multiplayer Online Server Engine) for .NET.
//
//                              2006-2007 DemoSoft Team
//
//
// First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published
 *   by the Free Software Foundation; either version 2.1 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

#region zh-CHS 包含名字空间 | en Include namespace
using System;
using System.Threading;
using Demo.Mmose.Core.Util;
#endregion

namespace Demo.Mmose.Core.Item
{
    /// <summary>
    /// BaseItem Delta
    /// </summary>
    public class BaseItemState
    {
        #region zh-CHS 共有属性 | en Public Properties

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateSerial = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateSerial
        {
            get { return m_UpdateSerial; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateX = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateX
        {
            get { return m_UpdateX; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateY = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateY
        {
            get { return m_UpdateY; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateZ = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateZ
        {
            get { return m_UpdateZ; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateOrientation = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateOrientation
        {
            get { return m_UpdateOrientation; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateLocation = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateLocation
        {
            get { return m_UpdateLocation; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateMap = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateMap
        {
            get { return m_UpdateMap; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateName = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateName
        {
            get { return m_UpdateName; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateItemTemplate = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateItemTemplate
        {
            get { return m_UpdateItemTemplate; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateOwner = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateOwner
        {
            get { return m_UpdateOwner; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateParent = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateParent
        {
            get { return m_UpdateParent; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateAddChildItemCall = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateAddChildItemCall
        {
            get { return m_UpdateAddChildItemCall; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_UpdateRemoveChildItemCall = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsUpdateRemoveChildItemCall
        {
            get { return m_UpdateRemoveChildItemCall; }
        }
        #endregion

        #region zh-CHS 内部方法 | en Internal Methods
        /// <summary>
        /// 
        /// </summary>
        internal void UpdateSerial()
        {
            m_UpdateSerial = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateX()
        {
            m_UpdateX = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateY()
        {
            m_UpdateY = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateZ()
        {
            m_UpdateZ = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateOrientation()
        {
            m_UpdateOrientation = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateLocation()
        {
            m_UpdateLocation = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateMap()
        {
            m_UpdateMap = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateName()
        {
            m_UpdateName = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateItemTemplate()
        {
            m_UpdateItemTemplate = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateOwner()
        {
            m_UpdateOwner = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdatemParent()
        {
            m_UpdateParent = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateAddChildItemCall()
        {
            m_UpdateAddChildItemCall = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void UpdateRemoveChildItemCall()
        {
            m_UpdateAddChildItemCall = true;
        }

        /// <summary>
        /// 
        /// </summary>
        internal void RestoreAll()
        {
            m_UpdateSerial = false;
            m_UpdateX = false;
            m_UpdateY = false;
            m_UpdateZ = false;
            m_UpdateOrientation = false;
            m_UpdateLocation = false;
            m_UpdateMap = false;
            m_UpdateName = false;
            m_UpdateItemTemplate = false;
            m_UpdateOwner = false;
            m_UpdateParent = false;
            m_UpdateAddChildItemCall = false;
            m_UpdateAddChildItemCall = false;
        }
        #endregion
    }
}
#endregion

